package com.wwlwxg.redis;

import redis.clients.jedis.Jedis;

/**
 * 将数据推送到列表
 */
public class ListPush {

	static Jedis jedis = new Jedis("localhost", 6379);

	public static void main(String[] args) throws Exception {
		try {
			String list = "MyList";
			String message = "Hello there!";
			jedis.lpush(list, message);
		}finally {
			jedis.close();
		}
	}
}
